package com.ming.springboot.data;

import lombok.Data;

/**
 * Created by mqsi on 2022/5/15 18:35
 */
@Data
public class BusinessException extends RuntimeException{
	protected Integer code;
	protected String message;

	public BusinessException(ResultCode resultCode) {
		this.code = resultCode.getCode();
		this.message = resultCode.getMessage();
	}
}
